#ifndef PENVISUALWIDGET_H
#define PENVISUALWIDGET_H

#include <QWidget>

class PenVisualWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PenVisualWidget(QWidget *parent = 0);

signals:
    //Update pen visual painter's pen settings
    void changePen(QColor, int);

protected:
    //repaint() events
    void paintEvent(QPaintEvent *);
    //Window resize
    void resizeEvent(QResizeEvent *);

public slots:
    //Setting painter's pen
    void setRed(int);
    void setGreen(int);
    void setBlue(int);
    void setWidth(int);
    void setWidthCB(int);
    void setColorCB(int);

private:
    int m_Red;
    int m_Green;
    int m_Blue;
    QColor m_Color;
    int m_Width;
    int m_Wwidth;
    int m_Wheight;
};

#endif // PENVISUALWIDGET_H
